package com.lpinfo.spca.member.biz.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 定义feign客户端调用工具 打成包谁调用我 谁依赖jar
 */
@FeignClient(name = "lpinfo-spca-order")
@Component
public interface OrderFeignService {

    //FIXME 根据订单ID查询订单详情
    @GetMapping("/order/getOrderById/{orderId}")
    Object getOrderById(@PathVariable("orderId") String orderId);

    //FIXME 查询用户下订单列表
    @GetMapping("/order/getOrderListByUserId/{userId}")
    Object getOrderListByUserId(@PathVariable("userId") Long userId);

}
